<?php


namespace app\controllers;


use app\models\request\ReqActListPage;
use app\models\request\ReqAppendQuestion;
use app\models\UserDto;
use app\service\SuggestionService;

class MyQuestionController extends BaseJsonController
{

    /**
     * @param $req ReqActListPage
     * @param $userInfo UserDto
     * @return bool|mixed
     */
    public function doService($req,$userInfo)
    {
        $service  = new SuggestionService();
        $req->setUserId($userInfo->getUserId());
        return  $service->listPage($req);
    }

    protected function injectionReq()
    {
        return new ReqActListPage();
    }

    public function needLogin(){
        return true;
    }


}